package com.lzjt.mapper;

import com.lzjt.entity.MaterialEntity;
import com.lzjt.model.MaterialModel;
import com.lzjt.param.MaterialParam;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MaterialMapper {

    /*查询所有的材料*/
    List<MaterialModel> getAllMaterial(MaterialParam param);
    int saveMaterial(MaterialEntity entity);

    int updateMaterial(MaterialEntity entity);

    int deleteMaterial(Long id);

    }